<template>
  <el-switch
    @change="handleChange"
    v-model="model"
    :disabled="item.disabled"
    :active-color="item.activeColor || '#13ce66'"
    :inactive-color="item.inactiveColor || '#ff4949'"
    :active-text="item.activeText || ''"
    :inactive-text="item.inactiveText || ''"
  >
  </el-switch>
</template>

<script>
import yDefault from "./y-default.vue";
export default {
  name: "y-switch",
   includesComponent: ['switch'],
  extends: yDefault,
};
</script>